
package cn.org.chiss.rhin._2015.base.terminology;

import cn.org.chiss.rhin._2015.base.Reference;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;


/**
 * <p>ConceptMap complex type的 Java 类。
 *
 * <p>以下模式片段指定包含在此类中的预期内容。
 *
 * <pre>
 * &lt;complexType name="ConceptMap"&gt;
 *   &lt;complexContent&gt;
 *     &lt;extension base="{http://www.chiss.org.cn/rhin/2015}RegTermObject"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="source" type="{http://www.chiss.org.cn/rhin/2015}Reference"/&gt;
 *         &lt;element name="target" type="{http://www.chiss.org.cn/rhin/2015}Reference"/&gt;
 *         &lt;element name="element" type="{http://www.chiss.org.cn/rhin/2015}ConceptMapElement" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/extension&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ConceptMap", propOrder = {
    "source",
    "target",
    "element"
})
public class ConceptMap
    extends RegTermObject
{

    @XmlElement(required = true)
    protected Reference source;
    @XmlElement(required = true)
    protected Reference target;
    @XmlElement(nillable = true)
    protected List<ConceptMapElement> element;

    /**
     * 获取source属性的值。
     *
     * @return
     *     possible object is
     *     {@link Reference }
     *
     */
    public Reference getSource() {
        return source;
    }

    /**
     * 设置source属性的值。
     *
     * @param value
     *     allowed object is
     *     {@link Reference }
     *
     */
    public void setSource(Reference value) {
        this.source = value;
    }

    /**
     * 获取target属性的值。
     *
     * @return
     *     possible object is
     *     {@link Reference }
     *
     */
    public Reference getTarget() {
        return target;
    }

    /**
     * 设置target属性的值。
     *
     * @param value
     *     allowed object is
     *     {@link Reference }
     *
     */
    public void setTarget(Reference value) {
        this.target = value;
    }

    /**
     * Gets the value of the element property.
     *
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the element property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getElement().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ConceptMapElement }
     *
     *
     */
    public List<ConceptMapElement> getElement() {
        if (element == null) {
            element = new ArrayList<ConceptMapElement>();
        }
        return this.element;
    }

}
